<template>
    <div class="body">
        <!-- <button @go="back">点击</button> -->
        <div class="title">
            <div class="icon">
                <img src="../../assets/图标1.png" alt="">
            </div>
            <div class="graph">
                <div class="graph_san1"></div>     
                <!-- <div class="graph_san2"></div>          -->
            </div>
        </div>
        <div class="content">
            <div class="circle">
                <img src="../../assets/头像3.png" alt="">
            </div>
            <div class="minename">
                <div class="unname">热心市民李先生</div>
                <div class="dengji">
                    <img src="../../assets/会员等级.png" alt="">
                </div>
            </div>
            <div class="cardID">ID: 1069643013</div>
            <div class="zawu">
                <div class="box1">
                    <span>红包</span>
                    <span>优惠卷</span>
                    <span>鲜豆</span>
                    <span>白条</span>
                </div>
                <div class="box2">
                    <div>218</div>
                    <div>12张</div>
                    <div>88</div>
                    <div>1000</div>
                </div>
            </div>
        </div>
        <div class="footer">
            <ul>
                <li>
                    <div><img src="../../assets/钱包.png" alt=""></div>
                    <div>我的钱包</div>
                    <div><img src="../../assets/导航条.png" alt=""></div>
                </li>
                <li>  
                    <div><img src="../../assets/地址_20220723083538.png" alt=""></div>
                    <div><router-link to="/address">我的地址</router-link></div>
                    <div><img src="../../assets/导航条.png" alt=""></div>
                </li>
                <li>
                     <div><img src="../../assets/帮助.png" alt=""></div>
                    <div>客服与帮助</div>
                    <div><img src="../../assets/导航条.png" alt=""></div>
                </li>
            </ul>
        </div>
        <Docker />
    </div>
</template>

<script setup>
import Docker from '../../components/Docker.vue';
// import { useRouter } from 'vue-router';
// let router = useRouter()
// let go = () =>{
//     router.push("./")
// }
</script>

<style lang="scss" scoped>

.body{
    background-color: #FCFCFC;
}
.title{
    width: 3.75rem;
    height: 2rem;
    background-color: #3A70F3;
    border-bottom-right-radius: 30%;
    border-bottom-left-radius: 30%;
}

.header{
    width: 100%;
    height: 0.2rem;
}
.icon{
    margin-left: 3.3rem;
    width: 0.24rem;
    height: 0.19rem;

}

.content{
    display: flex;
    flex-direction: column;
    margin-top: -1rem;
    margin-left: 0.18rem;
    width: 3.39rem;
    height: 2.03rem;
    background: #FFFFFF;
    box-shadow: 0 0.08rem 0.16rem 0 rgba(0,0,0,0.08);
    border-radius: 0.08rem;

    .circle{
        margin-top:-0.5rem;
        margin-left: 1.23rem;
        width: 0.94rem;
        height: 0.94rem;
        border-radius: 50%;
        background-color: orange;
    }
    .minename{
        display: flex;
        margin-top: 0.12rem;
        margin-left: 0.85rem;
        width: 2.20rem;
        height: 0.36rem;

        .unname{
            width: 1.7rem;
            height: 0.36rem;
            font-size: 24px;
            color: #262628;
            letter-spacing: 0.19px;
            text-align: center;
            line-height: 36px;
        }
        .dengji{
            margin-top: 0.1rem;
            margin-left: 0.12rem;
            width: 0.35rem;
            height: 0.15rem;
            font-size: 14px;
            background-color: #FCFCFC;
        }
    }
    .cardID{
        margin-top: 0.02rem;
        padding-bottom: 0.05rem;
        width: 3.39rem;
        height: 0.17rem;
        font-size: 14px;
        color: #C1C0C9;
        text-align: center;
        border-bottom: 0.01rem solid #C1C0C9;
    }
    .zawu{
        margin-top: 0.1rem;
        margin-left: 0.25rem;
        width: 2.9rem;
        height: 0.5rem;
    }    
    .box1{
        width:2.9rem;
        height: 0.2rem;

        span{
            font-size: 12px;
            color: #C1C0C9;
        }
        span:nth-child(2){
            margin-left: 0.6rem;
        }
        span:nth-child(3){
            margin-left: 0.6rem;
        }
        span:nth-child(4){
            margin-left: 0.6rem;
        }
    }
    .box2{
        display: flex;
        width: 3rem;
        height: 0.3rem;
        font-size: 0.16rem;
        color: #262628;
        line-height: 0.26rem;

        div{
            width: 0.34rem;
            height: 0.28rem;
        }
        div:nth-child(2){
            width: 0.4rem;
            margin-left: 0.49rem;
        }
        div:nth-child(3){
            width: 0.26rem;
            margin-left: 0.6rem;
        }
        div:nth-child(4){
            width: 0.4rem;
            margin-left: 0.48rem;
        }
    }
}

.footer{
    display: flex;
    margin-top: 0.25rem;
    margin-left: 0.18rem;
    width: 3.39rem;
    height: 1.8rem;
    background: #FFFFFF;
    box-shadow: 0 0.08rem 0.16rem 0 rgba(0,0,0,0.08);

    li{
        display: flex;
        margin-left: 0.1rem;
        width:3.2rem;
        height: 0.23rem;
    }
    li:nth-child(1){
        margin-top: 0.3rem;
    }
    li:nth-child(2){
        margin-top: 0.24rem;
    }
    li:nth-child(3){
        margin-top: 0.24rem;
    }
    div:nth-child(1){
        width: 0.22rem;
        height: 0.23rem;
    }
    div:nth-child(2){
        margin-left: 0.12rem;
        width: 2rem;
        height: 0.23rem;
        font-size: 0.14rem;
        color: #262626;
        line-height: 0.23rem;
    }
    div:nth-child(3){
        margin-top: 0.1rem;
        margin-left: 0.75rem;
        width: 0.07rem;
        height: 0.12rem;
    }

}

</style>